legacy.tsx 871 B

12345678910111213141516171819202122232425
  1. import ApiKeysLayout from '@/components/layouts/APIKeys/APIKeysLayout'
  2. import DefaultLayout from '@/components/layouts/DefaultLayout'
  3. import SettingsLayout from '@/components/layouts/ProjectSettingsLayout/SettingsLayout'
  4. import { DisplayApiSettings } from '@/components/ui/ProjectSettings/DisplayApiSettings'
  5. import { ToggleLegacyApiKeysPanel } from '@/components/ui/ProjectSettings/ToggleLegacyApiKeys'
  6. import type { NextPageWithLayout } from '@/types'
  7. const ApiKeysLegacyPage: NextPageWithLayout = () => {
  8. return (
  9. <>
  10. <DisplayApiSettings showTitle={false} showNotice={false} />
  11. <ToggleLegacyApiKeysPanel />
  12. </>
  13. )
  14. }
  15. ApiKeysLegacyPage.getLayout = (page) => (
  16. <DefaultLayout>
  17. <SettingsLayout title="api keys (legacy)">
  18. <ApiKeysLayout>{page}</ApiKeysLayout>
  19. </SettingsLayout>
  20. </DefaultLayout>
  21. )
  22. export default ApiKeysLegacyPage